package com.gzhryc.shared_device.cdb.core;

import com.gzhryc.shared_device.cdb.core.models.CDBExecuteResult;
import com.gzhryc.shared_device.cdb.core.models.CDBLeaseCommand;

public interface ICDBNetworkService {

    public CDBExecuteResult lease(CDBLeaseCommand cdbLeaseCommand);

    /**
     * 强制弹出充电宝
     * @param deviceSn
     * @param slotNum
     * @return
     */
    public CDBExecuteResult forceEjectDevice(String deviceSn, Integer slotNum,String messageId);

    /**
     * 强制弹出所有充电宝
     *
     * @param deviceSn 机柜序列号
     * @return
     */
    public CDBExecuteResult forceEjectDevice(String deviceSn,String messageId);


    /**
     * 异步查询设备信息
     *
     * @param deviceSn 机柜序列号
     * @return
     */
    public CDBExecuteResult searchDevice(String deviceSn);

    /**
     * 发送任意报文
     *
     * @param deviceSn
     * @param content
     * @return
     */
    public CDBExecuteResult sendCmd(String deviceSn, String content);

}
